function confirminfo(title, msg, action) {
	return art.dialog({
		id: 'Confirm',
		icon: 'question',
		fixed: true,
		lock: true,
		opacity: 0.5,
		content: title,
		ok: function(here) {
			action();
		},
		cancel: function(here) {
			art.dialog.close();
		}
	});
}
/*点击按钮从右侧划出iframe页面*/
function r_swiper(pn) {
	var expanded = false;
	if(expanded) {
		$('#ifr').animate({
			right: '-780'
		}, 500);
	} else {
		$('#ifr').attr('src','/admin/customer/selLookInfo?clientId='+pn);
		$('#ifr').animate({
			right: '0px'
		}, 500);
		$("#ifr").contents().find(".form-close-icon").click(function() {
			$('#ifr').animate({
				right: '-780'
			}, 500);
		});
	}
	expanded = !expanded;
}

//修改后台管理员
function r_swiper3(pn) {
	var expanded = false;
	if(expanded) {
		$('#ifr').animate({
			right: '-780'
		}, 500);
	} else {
		$('#ifr').attr('src','/admin/user/adminUpdate?userId='+pn);
		$('#ifr').animate({
			right: '0px'
		}, 500);
		$("#ifr").contents().find(".form-close-icon").click(function() {
			$('#ifr').animate({
				right: '-780'
			}, 500);
		});
	}
	expanded = !expanded;
}

/*点击其他地方收起右侧划出页面*/
$(document).click(function(e) {
	if($(e.target).closest('#ifr').length == 0 && $(e.target).closest('.table>tbody tr a').length == 0) {
		$('#ifr').animate({
			right: '-780px'
		}, 500);
		$('#test2').animate({
			height: '0px'
		}, 500);
	}
});
/*警示框效果*/
function alert_t() {
	alertinfo("你点击了搜索按钮！", false);
}
